import request from '@/utils/request'

// 查询报工单列表
export function listPaperWorker(query) {
  return request({
    url: '/third/paperWorker/list',
    method: 'get',
    params: query
  })
}

// 查询报工单详细
export function getPaperWorker(id) {
  return request({
    url: '/third/paperWorker/' + id,
    method: 'get'
  })
}

// 新增报工单
export function addPaperWorker(data) {
  return request({
    url: '/third/paperWorker',
    method: 'post',
    data: data
  })
}

// 修改报工单
export function updatePaperWorker(data) {
  return request({
    url: '/third/paperWorker',
    method: 'put',
    data: data
  })
}

// 删除报工单
export function delPaperWorker(id) {
  return request({
    url: '/third/paperWorker/' + id,
    method: 'delete'
  })
}
